/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package cn.yzc.client;

import cn.yzc.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * <p>Project: SpringColud - GoodsRemoteClient</p>
 * <p>Powered by yzc On 2023-12-29 14:52:08</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */

/**
 * feign 客户端
 */
@FeignClient(value = "sc-good",configuration = {FeignConfig.class})
public interface GoodsRemoteClient {
    /**
     * 声明方法 与远程调用一致
     * @param id
     * @return
     */
    @GetMapping("/goods")
    public Map updateStock(@RequestParam(name = "id") String id);
}
